<h1>展示图片信息</h1>

<?php
$this->widget('bootstrap.widgets.TbDetailView', array(
    'data' => $model,
    'type' => 'striped',
    'attributes' => array(
        'user_id', // title attribute (in plain text)
        array(
            'name' => 'file_name',
            'type' => 'raw',
            'value' => '<img src="http://' . $model->bucket . '.b0.upaiyun.com' . $model->file_name . '" style="width:80px;" onclick="window.open(\'http://' . $model->bucket . '.b0.upaiyun.com' . $model->file_name . '\')">',
        ),
        'image_type', // description attribute in HTML
        'image_width', // description attribute in HTML
        'image_height', // description attribute in HTML
        array(// related city displayed as a link
            'label' => 'sign',
            'type' => 'raw',
            'value' => $model->sign,
        ),
        array(
            'name' => 'upload_time',
            'value' => date('Y-m-d H:i:s', $model->upload_time)
        ),
    ),
));
